package org.eclipse.mylyn.rememberthemilk.core.client;


import org.eclipse.mylyn.rememberthemilk.core.exceptions.RTMException;
import org.eclipse.mylyn.rememberthemilk.core.exceptions.RTMLoginException;

import com.mdt.rtm.ServiceException;

public class RTMClient extends AbstractRTMClient {

	public static final String CHARSET = "UTF-8";

	public RTMClient(String repositoryUrl, String username, String password,
			ProxyInfo proxy) {
		super(repositoryUrl, username, password, proxy);
	}

	@Override
	public void updateAttributes() throws RTMException {
		try
		{
			this.data.rtmLists = getService().lists_getList();
		} catch (ServiceException e)
		{
			throw new RTMException(e.getMessage(), e);
		}
	}

	public void validate() throws RTMLoginException, RTMException
	{
		this.getService();
	}

}
